//
//  PICCollectionViewCell.m
//  GOGOTravel
//
//  Created by dllo on 16/2/27.
//  Copyright © 2016年 果果. All rights reserved.
//

#import "PICCollectionViewCell.h"

@implementation PICCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.image1 = [[UIImageView alloc] init];
        [self.contentView addSubview:_image1];
        [_image1 release];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes{
    _image1.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height);

}

- (void)dealloc{
    [_image1 release];
    [super dealloc];
}

@end
